package com.jxpanda.infrastructure.crypto.toolkit.digest;

import com.jxpanda.infrastructure.crypto.algorithm.digest.ShaDigest;
import com.jxpanda.infrastructure.crypto.constant.AlgorithmDigest;

public class ShaKit {

    public static ShaDigest createDigest() {
        return ShaDigest.createDefault();
    }

    public static ShaDigest createDigest(AlgorithmDigest.SHA sha) {
        return new ShaDigest(sha);
    }

    public static ShaDigest sha1(){
        return createDigest(AlgorithmDigest.SHA.SHA1);
    }

    public static ShaDigest sha256(){
        return createDigest(AlgorithmDigest.SHA.SHA256);
    }

    public static ShaDigest sha512(){
        return createDigest(AlgorithmDigest.SHA.SHA512);
    }

    public static ShaDigest sha3256(){
        return createDigest(AlgorithmDigest.SHA.SHA3_256);
    }

}
